import { defineStore } from "pinia";
export const useGlobalData = defineStore('useGlobalData',{
    state:() => ({
        pageTabNameMap: {},
        fullscreen: false,
        loginUrl:false
    }),
   getters:{
       
   },
   actions:{
        addTableName(item:any) {
            console.log(item)
            let sameObj = Object.assign({}, this.pageTabNameMap) as any;
            sameObj[item.key] = item.value;
            this.pageTabNameMap = {"/user/info":"mama"};
         
        },
        setFullscreen(state:any, val:any,val1:any) {
            state.fullscreen = val;
            state.loginUrl = val1
        },
   }
})
